<template>
	<uni-popup ref="lianxiUShang_pop">
		<view class="lianxiUShang4s">
			<view class="utile">联系他</view>
			<view class="ublack_1">
				<view class="text1">QQ:</view>
				<view class="text2">{{info.qq}}</view>
				<image class="right" src="/static/my/copy.png" @click="copy(info.qq)"></image>
			</view>
			<view class="ublack_1">
				<view class="text1">微信:</view>
				<view class="text2">{{info.wx}}</view>
				<image class="right" src="/static/my/copy.png" @click="copy(info.wx)"></image>
			</view>
			<view class="ublack_1 ublack_2">
				<view class="text1">手机号</view>
				<view class="text2">{{info.mobile}}</view>
				<image class="right" src="/static/my/copy.png" @click="copy(info.mobile)"></image>
			</view>
			<view class="bottom">
				<view class="left" @click="close()">取消</view>
				<view class="middle"></view>
				<view class="right" @click="copy(info.mobile)">复制</view>
			</view>
		</view>

	</uni-popup>
</template>

<script>
	export default {

		name: "lianxiUShang",
		data() {
			return {
				current: 0,
				info: {
					"id": 10,
					"user_id": 1,
					"name": "",
					"qq": "",
					"wx": "",
					"mobile": "",
					"status": "1",
					"add_time": 0,
					"user": {
						"id": 1,
						"nickname": "",
						"avatar": ""
					}
				}
			};
		},
		methods: {
			open(item) {
				this.info = item
				this.$refs.lianxiUShang_pop.open()
			},
			close() {
				this.$refs.lianxiUShang_pop.close()
			},
			copy(text) {
				var that =this
				this.custom.tool.setClipboardText(text, {}, {})
				that.close()
			},
		}
	}
</script>

<style scoped lang="less">
	.lianxiUShang4s {
		background: white;
		border-radius: 10px;
		width: 585rpx;
		.utile {
			text-align: center;
			font-weight: 800;
			font-size: 42rpx;
			font-weight: bold;
			color: #262626;
			padding: 10px 10px 10px 10px;
		}

		.ublack_1 {
			padding: 10px;
			display: flex;
			justify-content: space-between;
			align-items: center;

			border-bottom: 1rpx solid #ECECEC;

			.text1 {
				width: 60px;
			}

			.text2 {
				flex: 1;
				font-size: 25rpx;
				font-weight: 400;
				color: #666666;
			}
			.right{
				padding: 5px;
				width: 10px;
				height: 10px;
			}
		}
		
		.ublack_2{
			border-bottom: 0rpx solid #ECECEC;
		}
		.bottom {
			display: flex;
			justify-content: space-between;
			margin-top: 20px;
			border-top: 1rpx solid #ECECEC;
			display: flex;
			text-align: center;

			.left {
				text-align: center;
				flex: 1;
				font-size: 28rpx;
				font-weight: 400;
				color: #333333;
				padding: 15px 0px;
			}

			.right {
				text-align: center;
				flex: 1;
				font-size: 28rpx;
				font-weight: 400;
				color: #FE903D;
				padding: 15px 0px;
			}

			.middle {
				width: 1px;
				height: auto;
				background-color: #ECECEC
			}
		}
	}
</style>